﻿// JavaScript Document
$(function(){
    var nav_index = $("li.active").index();
    console.log("nav_index:  "+nav_index);
    var mySwiper = new Swiper("#tech_slider", {
        initialSlide: nav_index
    });
    mySwiper.on('slideChangeTransitionEnd', function () {
        console.log(this.activeIndex);
        $(".craft-list li").removeClass("active").eq(this.activeIndex).addClass("active");
    });
});